//*****************************************************************************
// 1. Års eksamen @ Datamatiker - EASJ
// Holmegaard Heldagsskole Administrations system 
// 
// Denne klasse er udarbejdet af: Marc
//*****************************************************************************
package control;

import model.Personale;
import org.hibernate.Session;


public class ControlUtil {
    
    private ElevHandler elevHandler;
    private FagHandler fagHandler;
    private HoldHandler holdHandler;
    private KpersonHandler kPersonHandler;
    private PersonaleHandler personaleHandler;
    private TrinmaalHandler trinmaalHandler;
    private Session session;
    private Personale bruger; 
    
    public ControlUtil(Session session){
        this.session = session;
        bruger = null;
        elevHandler = new ElevHandler(session);
        fagHandler = new FagHandler(session);
        holdHandler = new HoldHandler(session);
        kPersonHandler = new KpersonHandler(session);
        personaleHandler = new PersonaleHandler(session);
        trinmaalHandler = new TrinmaalHandler(session);
    }
    public void SetBruger(Personale p){
        bruger = p;
    }
    public Personale getBruger() {
        return bruger;
    }

    public ElevHandler getElevHandler() {
        return elevHandler;
    }

    public FagHandler getFagHandler() {
        return fagHandler;
    }

    public KpersonHandler getkPersonHandler() {
        return kPersonHandler;
    }

    public Session getSession() {
        return session;
    }

    public PersonaleHandler getPersonaleHandler() {
        return personaleHandler;
    }

    public TrinmaalHandler getTrinmaalHandler() {
        return trinmaalHandler;
    }

    public HoldHandler getHoldHandler() {
        return holdHandler;
    }
    
    
    

    
    
}
